[#escape x as (x)!?html]
<div class="bg-gray-600 gray-300 mt-4">
  <div class="container py-4 text-center small">
    <p>
      <span class="ml-2">今日访问量: <span id="todayViews"></span></span>
      <span class="ml-2">昨日访问量: <span id="yesterdayViews"></span></span>
      <span class="ml-2">今年访问量: <span id="yearViews"></span></span>
      <span class="ml-2">总访问量: <span id="totalViews"></span></span>
      <span class="ml-2">在线访客数: <span id="onlineUvCount"></span></span>
    </p>
    <p>
     <span class="ml-2">Powered by <strong><a href="http://demo.jprocms.com" class="text-reset" target="_blank">jprocms</a></strong></span>
    </p>
    <p>
      <span class="ml-2"><a href="https://beian.miit.gov.cn" target="_blank" class="text-reset">	
        [@ZConfig key='jprocms.beianNum';val]
          ${val!}
        [/@ZConfig]
      </a></span>
    </p>
  </div>
</div>
[/#escape]
<script src="${resource}/static/js/assist-entry.js"></script>
<script>
  $(function () {
    ////站点访问量和变灰主题
    getSiteView()
  });
  function getSiteView(){
    axios.get('${api}/flow/view/${site.id?c}').then(function (response) {
      //站点关闭，静态页面重定向到
      if(response.data.code==2001000007&&!location.href.endsWith("${base}/error/siteClose")){
        location.href="${base}/error/siteClose"
      }
      console.log(!response.data.data.onlyIndexGrey)
      if(response.data.data.greyOpen&&!response.data.data.onlyIndexGrey){
        $('body').attr('style', '-webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(100%);filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);filter:gray;')
      }
      $('#todayViews').text(response.data.data.todayViews);
      $('#yesterdayViews').text(response.data.data.yesterdayViews);
      $('#totalViews').text(response.data.data.views);
      $('#yearViews').text(response.data.data.yearViews);
      $('#onlineUvCount').text(response.data.data.onlineUvCount);
    });
  }
</script>